package w83a.w83aOperacionesPaso.w83aDocumentacion;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import w83a.w83aBeans.W83aCentroTrabajoBean;
import es.ejie.frmk.presentacion.operacion.paso.Q70ActionPasoOP;
import es.ejie.frmk.presentacion.sesiondatos.Q70ContextoEJIE;

// TODO: Auto-generated Javadoc
/**
 * The Class W83aAccesoAplicacionOPAction.java.
 *
 * @author Deusto Sistemas
 */
public class W83aCentroTrabajoOPAction extends Q70ActionPasoOP{

	
	/**
	 * processOP
	 * @param contexto a
	 * @param mapping a
	 * @param errores a
	 * @param form a
	 * @param request a
	 * @param response a
	 * @throws Exception e
	 */	
	protected void processOP(Q70ContextoEJIE contexto, ActionErrors errores, ActionMapping mapping,
			ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		//Guardamos la accion en el contexto
		W83aCentroTrabajoBean c=new W83aCentroTrabajoBean();
		c.setCifnif(request.getParameter("cif").toUpperCase());
		c.setNumCentro(request.getParameter("numCentroTrabajo").toUpperCase());
		c.setCodCentroTrabajo(request.getParameter("codCentroTrabajo"));
		contexto.set("w83aCentroTrabajoBean",c);
		
	}

	/**
	 * processForward
	 * @param contexto a
	 * @param mapping a
	 * @param errors a
	 * @param form a
	 * @param request a
	 * @param response a
	 * @throws Exception e
	 * @return ActionForward
	 */	
	protected ActionForward processForward(Q70ContextoEJIE contexto, ActionErrors errors, ActionMapping mapping, 
			ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
			
		return mapping.findForward("ok");

	}

}
